package com.code.train;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.core.env.ConfigurableEnvironment;

@Slf4j
@MapperScan("com.code.train.mapper")
@EnableConfigurationProperties
@SpringBootApplication
public class TrainMemberApplication {

	public static void main(String[] args) {

//		SpringApplication.run(TrainApplication.class, args);
		SpringApplication application = new SpringApplication(TrainMemberApplication.class);
		ConfigurableEnvironment environment = application.run(args).getEnvironment();
		log.info("member模块正常启动");
		log.info("初始地址为: \thttp://localhost:{}" ,environment.getProperty("server.port"));
	}

}
